<?php

declare(strict_types=1);

use App\Http\Api\Controller\Common\Ai\ChatWebSocketController;
use App\Http\Common\ResultCode;
use Hyperf\HttpServer\Router\Router;

Router::addRoute(['GET', 'POST', 'HEAD'], '/', function (){
    return   (new \App\Http\Common\Result(ResultCode::SUCCESS,'Hello HuiYingAi'));
});

// websocket
Router::addServer('ws', function () {
    Router::get('/', ChatWebSocketController::class);
});
Router::get('/favicon.ico', function () {
    return '';
});


